package com.wmh.baseservice.admin.pojo.vo.menu;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 谢骏
 * @date 2023/2/15 14:47
 **/
@ApiModel("添加或修改请求菜单VO")
@Data
@Accessors(chain = true)
public class AddOrUpdateMenuReqVO implements Serializable {

    private Long id;

    @Length(min= 2, max= 255, message = "请正确的填写 [名称] 长度在 2 至 255 个字符!")
    @NotBlank(message = "请正确的填写 [名称] 长度在 2 至 255 个字符!")
    private String menuName;

    private String requestUrl;

    private String menuIcon;

    private Long parentId;

    private String component;

    @NotNull(message = " [类型] 字段不能为空")
    private Integer flag;

    private Integer sort;

    private String permissions;

    static final long serialVersionUID = 1L;
}
